//TESH.scrollpos=0
//TESH.alwaysfold=0

function Trig_boss_spownActions_teset2 takes nothing returns nothing
    local real boss_max_hp = 15000
    local real boss_speed = 120
    
    local integer loop_start = 0
    local integer loop_end = 3
    loop
        set loop_start = loop_start + 1
        exitwhen loop_start > loop_end
        call ST_monster_spown('huBB', Player(8), GetRectCenter(gg_rct_start1), boss_max_hp, boss_speed)
        call ST_monster_spown('huBB', Player(9), GetRectCenter(gg_rct_start2), boss_max_hp, boss_speed)
        call ST_monster_spown('huBB', Player(10), GetRectCenter(gg_rct_start3), boss_max_hp, boss_speed)
        call ST_monster_spown('huBB', Player(11), GetRectCenter(gg_rct_start4), boss_max_hp, boss_speed)
        call PolledWait(1.50)
    endloop
    
    
    // 触发器添加条件 InitTrig_boss_defeat_check_Orig
    call TriggerRegisterTimerEventPeriodic(gg_trg_boss_defeat_check, 5.00)
    // 击败时限计时器计时
    call StartTimerBJ( udg_TIMER_BOSS_DEFEAT, false, 300.00 )
    // 创建计时器标题
    call CreateTimerDialogBJ( udg_TIMER_BOSS_DEFEAT, "击败所有敌人" )
    call TimerDialogDisplay( bj_lastCreatedTimerDialog, true )
endfunction

//===========================================================================
function InitTrig_test02 takes nothing returns nothing
    set gg_trg_test02 = CreateTrigger()
#ifdef DEBUG
    call YDWESaveTriggerName(gg_trg_test02, "test02")
#endif
    call TriggerRegisterPlayerChatEvent( gg_trg_test02, Player(0), "测试2", true )
    call TriggerAddAction(gg_trg_test02, function Trig_boss_spownActions_teset2)
endfunction

